<template>
  <div>
    <h2>Children2</h2>
  </div>
</template>
<script>
export default{
  data(){
    return {
      handle:'使用$EventBus中央事件总线实现兄弟组件传值,children2 => children1'
    }
  },
  created(){
    this.$EventBus.$emit('foo', this.handle)
  }
}
</script>
<style lang="scss" scoped>

</style>
